import request from "@/utils/request";

/**
 * 查询组织架构列表
 * @param params
 * @returns
 */
export function getorganizationList(data) {
  return request({
    url: '/management/auth.auth_organization/getList',
    method: 'post',
    data
  })
}

/**
 * 添加组织架构信息
 * @param params
 * @returns
 */
export function addorganization(data) {
  return request({
    url: '/management/auth.auth_organization/add',
    method: 'post',
    data
  })
}

/**
 * 修改组织架构信息
 * @param params
 * @returns
 */
export function updateorganization(data) {
  return request({
    url: '/management/auth.auth_organization/update',
    method: 'post',
    data
  })
}

/**
 * 删除组织架构信息
 * @param params
 * @returns
 */
export function delorganization(data) {
  return request({
    url: '/management/auth.auth_organization/del',
    method: 'post',
    data
  })
}

/**
 * 查询指定组织架构绑定的权限角色
 * @param params
 * @returns
 */
export function getorganizationroleList(data) {
  return request({
    url: '/management/auth.auth_organization_role/getList',
    method: 'post',
    data
  })
}

/**
 * 绑定/解绑关联权限角色
 * @param params
 * @returns
 */
export function bindorganizationrole(data) {
  return request({
    url: '/management/auth.auth_organization_role/bind',
    method: 'post',
    data
  })
}

/**
 *  查询权限列表
 * @param params
 * @returns
 */
export function getauthnodeList(data) {
  return request({
    url: '/management/auth.auth_node/getList',
    method: 'post',
    data
  })
}

/**
 *  添加权限节点
 * @param params
 * @returns
 */
export function addauthnode(data) {
  return request({
    url: '/management/auth.auth_node/add',
    method: 'post',
    data
  })
}

/**
 *  修改权限节点
 * @param params
 * @returns
 */
export function updateauthnode(data) {
  return request({
    url: '/management/auth.auth_node/update',
    method: 'post',
    data
  })
}

/**
 *  删除权限节点
 * @param params
 * @returns
 */
export function delauthnode(data) {
  return request({
    url: '/management/auth.auth_node/del',
    method: 'post',
    data
  })
}

/**
 *  查询权限角色列表
 * @param params
 * @returns
 */
export function getauthroleList(data) {
  return request({
    url: '/management/auth.auth_role/getList',
    method: 'post',
    data
  })
}

/**
 *  添加角色
 * @param params
 * @returns
 */
export function addauthrole(data) {
  return request({
    url: '/management/auth.auth_role/add',
    method: 'post',
    data
  })
}

/**
 *  修改角色
 * @param params
 * @returns
 */
export function updateauthrole(data) {
  return request({
    url: '/management/auth.auth_role/update',
    method: 'post',
    data
  })
}

/**
 *  删除角色
 * @param params
 * @returns
 */
export function delauthrole(data) {
  return request({
    url: '/management/auth.auth_role/del',
    method: 'post',
    data
  })
}

/**
 *  查询角色关联权限节点列表
 * @param params
 * @returns
 */
export function getauthrolenodeList(data) {
  return request({
    url: '/management/auth.auth_role_node/getList',
    method: 'post',
    data
  })
}

/**
 *  权限角色绑定与解绑权限节点
 * @param params
 * @returns
 */
export function bindauthrolenode(data) {
  return request({
    url: '/management/auth.auth_role_node/bind',
    method: 'post',
    data
  })
}
/**
 *   复制权限角色
 * @param params
 * @returns
 */
export function copyAuthrolenode(data) {
  return request({
    url: '/management/auth.auth_role/copy',
    method: 'post',
    data
  })
}
/**
 *  查询管理员账号列表
 * @param params
 * @returns
 */
export function getauthmanagerList(data) {
  return request({
    url: '/management/auth.auth_manager/getList',
    method: 'post',
    data
  })
}

/**
 *  添加管理员账号
 * @param params
 * @returns
 */
export function addauthmanager(data) {
  return request({
    url: '/management/auth.auth_manager/add',
    method: 'post',
    data
  })
}

/**
 *  修改账号信息
 * @param params
 * @returns
 */
export function updateauthmanager(data) {
  return request({
    url: '/management/auth.auth_manager/update',
    method: 'post',
    data
  })
}

/**
 *  删除账号
 * @param params
 * @returns
 */
export function delauthmanager(data) {
  return request({
    url: '/management/auth.auth_manager/del',
    method: 'post',
    data
  })
}

/**
 *  修改账号密码
 * @param params
 * @returns
 */
export function updatePassword(data) {
  return request({
    url: '/management/auth.auth_manager/updatePassword',
    method: 'post',
    data
  })
}

/**
 *  查询账号关联权限角色列表
 * @param params
 * @returns
 */
export function getmanagerroleList(data) {
  return request({
    url: '/management/auth.auth_manager_role/getList',
    method: 'post',
    data
  })
}

/**
 *  管理员账号绑定权限角色
 * @param params
 * @returns
 */
export function bindmanagerrole(data) {
  return request({
    url: '/management/auth.auth_manager_role/bind',
    method: 'post',
    data
  })
}

/**
 *  删除管理员绑定角色关系
 * @param params
 * @returns
 */
export function unbindmanagerrole(data) {
  return request({
    url: '/management/auth.auth_manager_role/unbind',
    method: 'post',
    data
  })
}

/**
 *  获取绑定微信二维码
 * @param params
 * @returns
 */
export function bindWxauthmanager(data) {
  return request({
    url: '/management/auth.auth_manager/bindWx',
    method: 'post',
    data
  })
}

/**
 *  账号绑定设备
 * @param params
 * @returns
 */
export function bindmanagermachine(data) {
  return request({
    url: '/management/auth.auth_manager_machine/bind',
    method: 'post',
    data
  })
}

/**
 *  获取账号绑定设备列表
 * @param params
 * @returns
 */
export function getmanagermachineList(data) {
  return request({
    url: '/management/auth.auth_manager_machine/getList',
    method: 'post',
    data
  })
}